package com.syezon.wifikey.speed;

import java.io.Serializable;

public class SpeedTestInfo implements Serializable {

    private long id;
    private double ping;
    private double jetter;
    private double loseRate;
    private double dlSpeed;
    private double uploadSpeed;
    private long time;
    private double rankLevel;
    private String innerIp = "未知";
    private String outterIp = "未知";
    private String isp;
    private String address = "未知";
    private int netType;
    private String netName;

    public void reset() {
        this.id = 0L;
        this.ping = 0;
        this.jetter = 0;
        this.loseRate = 0;
        this.dlSpeed = 0;
        this.uploadSpeed = 0;
        this.time = 0;
        this.rankLevel = 0;
        this.innerIp = "未知";
//        this.outterIp = "未知";
//        this.isp = "未知";
        this.netName = "";
        this.netType = 0;
//        this.address = "";
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public double getPing() {
        return ping;
    }

    public void setPing(double ping) {
        this.ping = ping;
    }

    public double getJetter() {
        return jetter;
    }

    public void setJetter(double jetter) {
        this.jetter = jetter;
    }

    public double getLoseRate() {
        return loseRate;
    }

    public void setLoseRate(double loseRate) {
        this.loseRate = loseRate;
    }

    public double getDlSpeed() {
        return dlSpeed;
    }

    public void setDlSpeed(double dlSpeed) {
        this.dlSpeed = dlSpeed;
    }

    public double getUploadSpeed() {
        return uploadSpeed;
    }

    public void setUploadSpeed(double uploadSpeed) {
        this.uploadSpeed = uploadSpeed;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public double getRankLevel() {
        return rankLevel;
    }

    public void setRankLevel(double rankLevel) {
        this.rankLevel = rankLevel;
    }

    public String getInnerIp() {
        return innerIp;
    }

    public void setInnerIp(String innerIp) {
        this.innerIp = innerIp;
    }

    public String getOutterIp() {
        return outterIp;
    }

    public void setOutterIp(String outterIp) {
        this.outterIp = outterIp;
    }

    public String getIsp() {
        return isp;
    }

    public void setIsp(String isp) {
        this.isp = isp;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getNetType() {
        return netType;
    }

    public void setNetType(int netType) {
        this.netType = netType;
    }

    public String getNetName() {
        return netName;
    }

    public void setNetName(String netName) {
        this.netName = netName;
    }

    public SpeedTestInfo copy() {
        SpeedTestInfo speedTestInfo = new SpeedTestInfo();
        speedTestInfo.setPing(this.ping);
        speedTestInfo.setJetter(this.jetter);
        speedTestInfo.setLoseRate(this.loseRate);
        speedTestInfo.setDlSpeed(this.dlSpeed);
        speedTestInfo.setUploadSpeed(this.uploadSpeed);
        speedTestInfo.setTime(this.time);
        speedTestInfo.setRankLevel(this.rankLevel);
        speedTestInfo.setInnerIp(this.innerIp);
        speedTestInfo.setOutterIp(this.outterIp);
        speedTestInfo.setIsp(this.isp);
        speedTestInfo.setAddress(this.address);
        speedTestInfo.setNetType(this.netType);
        speedTestInfo.setNetName(this.netName);
        return speedTestInfo;
    }
}
